package com.ydj.app.protocol.http.cms;

import com.ydj.framework.protocol.JsonBaseRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotNull;
import java.util.List;

@Getter
@Setter
@Accessors(chain = true)
public class CmsBannerAdjustOrderReq extends JsonBaseRequest {

    private List<CmsBannerAdjustOrderReqItem> list;

    @Getter
    @Setter
    @Accessors(chain = true)
    public static class CmsBannerAdjustOrderReqItem {
        @ApiModelProperty(value = "ID", required = true, example = "12345678")
        @NotNull(message = "缺少ID")
        private Long id;

        @ApiModelProperty(value = "排序号", required = true, example = "12")
        @NotNull(message = "缺少排序号")
        private Integer orderNumber;
    }

}